//
//  YuanXinCamera.h
//  YuanXinCamera
//
//  Created by 晏德智 on 16/8/18.
//  Copyright © 2016年 晏德智. All rights reserved.
//

#import <Foundation/Foundation.h>
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import <React/RCTBridgeModule.h>
#endif

#define iOS7Later ([UIDevice currentDevice].systemVersion.floatValue >= 7.0f)
#define iOS8Later ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f)
#define iOS9Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.0f)
#define iOS9_1Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.1f)

@interface YuanXinImagePickerManager :  NSObject<RCTBridgeModule>

+ (void)getAssetAbsolutePathFromAsset:(id)asset resultHandler:(void (^)(NSString *path))resultHandler;
+ (void)getAssetAbsolutePath:(NSString *)filePath resultHandler:(void (^)(NSString *path))resultHandler;
+ (void)getAssetAbsolutePathArrayFromAssets:(NSArray *)assetArray resultHandler:(void (^)(NSArray<NSString *> *result))resultHandler;

-(void)launchImageLibrary:(NSDictionary *)options resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;

@end
